package com.yunji.cabinet.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
/**
 * @author : peter-zhu
 * @date : 2025/1/25 09:09
 * @description : TODO
 **/
@Data
public class DeviceEventVO {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "事件id")
    private Long eventId;

    @Excel(name = "事件数据的唯一值", width = 15)
    @ApiModelProperty(value = "事件数据的唯一值")
    private String eventDataCode;

    @Excel(name = "业务类型", width = 15)
    @ApiModelProperty(value = "业务类型")
    private String event;

    @Excel(name = "触发指令", width = 15)
    @ApiModelProperty(value = "触发指令")
    private String command;

    @Excel(name = "操作时间", width = 15)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date createTime;

    @ApiModelProperty("货柜名称")
    @Excel(name = "货柜名称", width = 15)
    private String containerName;

    @ApiModelProperty(value = "imei")
    @Excel(name = "imei", width = 15)
    private String imei;

    @Excel(name = "货柜类型", width = 15)
    private String containerType;

    @ApiModelProperty("sku")
    @Excel(name = "sku", width = 15)
    private String sku;

    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称", width = 15)
    private String productName;

    @ApiModelProperty("商品状态 0-缺货 1-不缺货")
    private Integer lackStatus;

    @ApiModelProperty("代理商名称")
    @Excel(name = "代理商名称", width = 15)
    private String agentName;

    @Excel(name = "网点ID", width = 15)
    private Long siteId;

    @ApiModelProperty("网点名称")
    @Excel(name = "网点名称", width = 15)
    private String siteName;

    @Excel(name = "点位名称", width = 15)
    private String locationName;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Excel(name = "用户类型")
    @ApiModelProperty(value = "用户类型")
    private String userType;

    @Excel(name = "用户名称", width = 15)
    @ApiModelProperty(value = "用户名称")
    private String realName;

    @Excel(name = "用户手机号", width = 15)
    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty("操作前硬件状态")
    private String beforeCmd;

    @ApiModelProperty("操作后硬件状态")
    private String afterCmd;
}
